package com.dcs.test.Activity.notepad;

import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.widget.TextView;

import com.dcs.test.R;
import com.dcs.test.Activity.BaseCalendar;

public class LookRecord extends Activity{
	private TextView mTextViewTitle, mTextViewMes;
	private int id,index;
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
        
		super.onCreate(savedInstanceState);
		setContentView(R.layout.record_look);
		initView();
	}
	private void initView(){
		mTextViewTitle = (TextView)findViewById(R.id.record_look_title);
		mTextViewMes = (TextView)findViewById(R.id.record_look_mes);
        Intent intent = getIntent();
		id = intent.getIntExtra("id", 0);
		index = intent.getIntExtra("index", -1);

		Cursor cursor = BaseCalendar.dbService.query(id);
		if (cursor.moveToLast()) {
			mTextViewTitle.setText(cursor.getString(0));
			mTextViewMes.setText(cursor.getString(1));
//			shake = Boolean.parseBoolean(cursor.getString(2));
//			ring = Boolean.parseBoolean(cursor.getString(3));
		}

	
		
	}
}
